<!DOCTYPE html>
<html lang="en" class="page-fill">
<head>
    <meta charset="UTF-8">
    <title>登录-管理中心</title>
    <link rel="stylesheet" href="./assets/css/login.css"/>
</head>
<body class="page-fill">
    <div class="page-fill" id="login">
        <form class="layui-form">
            <div class="login_face"><img src="./assets/images/logo.png"></div>
            <div class="input-item">
                <input type="text" required name="username" placeholder="请输入账号" id="username" class="layui-input">
            </div>
            <div class="input-item">
                <input type="password" required name="password" placeholder="请输入密码"  id="password" class="layui-input">
            </div>
            <div class="layui-form-item">
                <button type="button" id="btn-login" class="layui-btn layui-block">登录</button>
            </div>
        </form>
    </div>
    
</body>
<script src="./assets/js/jquery.js"></script>
<script src="assets/layui/layui.js"></script>
<script>
$(function(){
    $("#btn-login").on('click',function(){
        var username=$("[name='username']").val().trim();
        var password=$("[name='password']").val().trim();
        if(username==password&&username!=''){
            location.href="./index.html"
        }else{
            alert('用户名密码不正确');
        }
    });
});
</script>
</html>
